// components/image-popup/image-popup.js
Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    imageUrl: {
      type: String,
      value: ''
    }
  },
  methods: {
    onClose() {
      this.setData({
        show: false
      });
      this.triggerEvent('close');
    }
  }
});